﻿using Onetube.Entities.Enums;

namespace Onetube.Providers.Helpers
{
    public static class SearchHelpers
    {
        public static string ParseSearchOrderEnum(SearchOrder val)
        {
            switch (val)
            {
                case SearchOrder.relevance:
                    return "relevance";
                    break;
                case SearchOrder.date:
                    return "date";
                    break;
                case SearchOrder.title:
                    return "title";
                    break;
                case SearchOrder.videoCount:
                    return "videoCount";
                    break;
                case SearchOrder.viewCount:
                    return "viewCount";
                    break;
                case SearchOrder.rating:
                    return "rating";
                    break;
            }
            return "relevance";
        }
    }
}